import { Directive } from 'vue'
const vSetColor: Directive = {
  mounted(el, binding, vnode) {
    console.log('绑定指令:改变color')
    el.style.color = binding.value
  },
  unmounted(el) {},
}
export default vSetColor

/*
app.directive('color', (el, binding) => {
    // 这会在 `mounted` 和 `updated` 时都调用
    el.style.color = binding.value
  })
*/
